import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'element-ui/lib/theme-chalk/display.css';
import 'el-select-tree/lib/element-ui';
import ElSelectTree from 'el-select-tree';
import ajax from '@/utils/ajax'
import api from '@/api/api'
import appConstant from '@/utils/constant'
import Notice from "@/utils/plugins/notice";
import AutoJump from "@/utils/plugins/autoJump";
import perm from '@/utils/directives/perm'

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(ElSelectTree);
Vue.use(Notice);
Vue.use(AutoJump)
Vue.use(perm)
Vue.use(ajax);

Vue.prototype.$ajax = ajax;
Vue.prototype.$api = api;
Vue.prototype.$appConstant = appConstant;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
